/**
 * @Author DengJia
 * @Date 2021/8/21 18:08
 * @Description
 */

public class Root {
    private Component1 component1 = new Component1(111 + "");
    private Component2 component2 = new Component2(222 + "");
    private Component3 component3 = new Component3(333 + "");

    Root(String ir) {
        System.out.println("croot: " + ir);
    }
}

class Stem extends Root {
    Stem(String is) {
        super("stemSuperRoot");
        System.out.println("cstem: " + is);
    }

    public static void main(String[] args) {
        new Stem("newStem");
    }
}

class Component1 {
    Component1(String i1) {
        System.out.println("cc1: " + i1);
    }
}

class Component2 {
    Component2(String i2) {
        System.out.println("cc2: " + i2);
    }

}

class Component3 {
    Component3(String i3) {
        System.out.println("cc3: " + i3);
    }
}
